import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:namewava/utils/jc_image_path.dart';

class JcLoginWidget extends StatelessWidget {
  const JcLoginWidget({super.key, required this.top});
  final double top;

  @override
  Widget build(BuildContext context) {
    return Container(
      margin: EdgeInsets.only(top: top),
      width: 210.w,
      height: 200.h,
      alignment: Alignment.center,
      decoration: const BoxDecoration(
          image: DecorationImage(
              image: AssetImage(JcImagePath.jcWavaLogoBg), fit: BoxFit.fill)),
      child: Container(
        height: 100.w,
        width: 100.w,
        decoration: BoxDecoration(
            borderRadius: BorderRadius.circular(50.w),
            border: Border.all(width: 1, color: Colors.white)),
        child: ClipRRect(
          borderRadius: BorderRadius.circular(50.w),
          child: Image.asset(
            JcImagePath.jcWavaLogo2,
            width: double.infinity,
            height: double.infinity,
            fit: BoxFit.cover,
          ),
        ),
      ),
    );
  }
}
